package com.lijie.ljblog.mapper;

import com.lijie.ljblog.model.Classify;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lijie
 * @since 2021-08-28
 */
@Component
public interface ClassifyMapper extends BaseMapper<Classify> {

    /**
     * 根据父id获取分类
     * @param id
     * @return
     */
    List<Classify>  getClassifyByPid(Integer id);
}
